package com.kele.oplog.dao;

import com.kele.model.oplog.BrowseLog;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BrowseLogRepository extends MongoRepository<BrowseLog, ObjectId> {

    public List<BrowseLog> findBrowseLogByPriceBetween(Double min,Double max);

    public List<BrowseLog> getByPriceGreaterThanAndBrandEquals(Double min,String brand);
}
